<?php


define('EVENT_IMG_SERVER', 'http://img.tamtay.vn');
define('EVENT_IMG_SERVER2', 'http://img2.tamtay.vn');
if(!defined('VIDEO_THUMBNAIL_SERVER'))
    define('VIDEO_THUMBNAIL_SERVER', 'http://v1.ttimg.vn');
if(!defined('CORE_IMG_SERVER'))
	define('CORE_IMG_SERVER', 'http://img2.tamtay.vn');
if(!defined('CORE_IMG_PATH'))
	define('CORE_IMG_PATH', '/data/core_img');
define('EVENT_IMG_URL_PATH', CORE_IMG_SERVER.'/events');
define('EVENT_IMG_DIR', CORE_IMG_PATH.'/event_img');


define('EVENT_CACHE_PREFIX', 'event_');
define('EVENT_COMMENT_PER_PAGE', 20);

define ("EVENT_PERM_ADMIN",	"event admin");

 
$GLOBALS['eDayArr'] = range(1,31);
$GLOBALS['eMonthArr'] = range(1,12);
$GLOBALS['yearTmp'] = (int)date('Y');
$GLOBALS['eYearArr'] = range($GLOBALS['yearTmp']-2, $GLOBALS['yearTmp']+5);

$GLOBALS['eHourArr'] = range(0,23);
$GLOBALS['eMinuteArr'] = range(0,59);




define("EVENT_PRIVACY_VIDEO_DISABLED", -1);
define("EVENT_PRIVACY_VIDEO_PUBLIC", 0); //Every one can add video to event
define("EVENT_PRIVACY_VIDEO_PRIVATE", 1); //Only admin can add video to event

define("EVENT_PRIVACY_PHOTO_DISABLED", -1);
define("EVENT_PRIVACY_PHOTO_PUBLIC", 0); //Every one can add photo to event
define("EVENT_PRIVACY_PHOTO_PRIVATE", 1); //Only admin can add photo to event

define("EVENT_PRIVACY_MUSIC_DISABLED", -1);
define("EVENT_PRIVACY_MUSIC_PUBLIC", 0);
define("EVENT_PRIVACY_MUSIC_PRIVATE", 1);


define("EVENT_PRIVACY_BLOG_DISABLED", -1);
define("EVENT_PRIVACY_BLOG_PUBLIC", 0);
define("EVENT_PRIVACY_BLOG_PRIVATE", 1);

define("EVENT_PRIVACY_VIEW_DISABLED", -1);	// event view is desable
define("EVENT_PRIVACY_VIEW_PUBLIC", 0);	// every one can view
define("EVENT_PRIVACY_VIEW_PRIVATE", 1);	// every member can view

define("EVENT_ACCESS_PUBLIC", 0);
define("EVENT_ACCESS_PRIVATE", 1);
define("EVENT_ACCESS_SECURE", 2);
//va
define("EVENT_ACCESS_TICKET",3);
//va

define("EVENT_USER_STATUS_NOTHING", 0);	// is guest
define("EVENT_USER_STATUS_INVITED", 4);	// is invited
define("EVENT_USER_STATUS_MEMBER", 2);	// is member
define("EVENT_USER_STATUS_ADMIN", 1);	// is admin
define("EVENT_USER_STATUS_MAYBE", 5);	// maybe attend
define("EVENT_USER_STATUS_NOT", 6);		// not attend
define("EVENT_USER_STATUS_REQUEST", 3);		// not attend

define("EVENT_PRIVACY_COMMENT_DISABLED", -1);
define("EVENT_PRIVACY_COMMENT_PUBLIC", 0); //Every member can add comment to event
define("EVENT_PRIVACY_COMMENT_PRIVATE", 1); //Only admin can add comment to event
define("EVENT_PRIVACY_COMMENT_EVERYONE", 2); //Every one can add comment to event

define("EVENT_PRIVACY_BOOKMARK_DISABLED", -1);
define("EVENT_PRIVACY_BOOKMARK_PUBLIC", 0); //Every one can add BOOKMARK to event
define("EVENT_PRIVACY_BOOKMARK_PRIVATE", 1); //Only admin can add BOOKMARK to event

define("EVENT_PRIVACY_FORUM_DISABLED", -1);
define("EVENT_PRIVACY_FORUM_PUBLIC", 0); //Every one can add forum to event
define("EVENT_PRIVACY_FORUM_PRIVATE", 1); //Only admin can add forum to event


define("REQUEST_EVENT_INVITE_TYPE", 13);
define("REQUEST_EVENT_REQUEST_TYPE", 14);

define("EVENT_INVITE_REQUEST_PENDING", 9); //pending
define("EVENT_INVITE_REQUEST_SENT", 10); //send but not read by receiver
//define("EVENT_INVITE_REQUEST_ATTENDING", 11); //send and accepted by receiver
define("EVENT_INVITE_REQUEST_MAYBE_ATTENDING", 12); //send and maybe accepted by receiver
define("EVENT_INVITE_REQUEST_NOT_ATTENDING", 13); //send and not accepted by receiver
define("EVENT_INVITE_REQUEST_BLOCKED", 14); //block by admin


define ("EVENT_WD_ADD", "add");
define ("EVENT_WD_DELETE", "delete");
define ("EVENT_WD_EDIT", "edit");
define ("EVENT_WD_EDIT_LOGO", "change logo");
// va
define ("EVENT_WD_ADMIN_EDIT","admin edit");
define ("EVENT_WD_ADMIN_DELETE","admin delete");
//va

define ("EVENT_BOOKMARK_TYPE_EVENT", 4);
define ("EVENT_BLOG_TYPE_EVENT", 2);

define("EVENT_PHOTO_VOTE", 1);
define("EVENT_MUSIC_VOTE", 2);
define("EVENT_VIDEO_VOTE", 3);


//va
define("EVENT_PROMOTE_FOCUS", 5);
define("EVENT_PROMOTE_VIP", 4);
define("EVENT_PROMOTE_HOT", 3);
define("EVENT_PROMOTE_PUBLISHED", 1);
define("EVENT_PROMOTE_NOTPUBLISHED", 0);
//va

define('EVENT_STATIC_SERVER', 'http://localhost');
